
<div class="pt15 pl15">当前位置：<span class="layui-breadcrumb"><a href="/">首页</a><a href="/adminuser/user/index">用户管理</a><a><cite>角色管理</cite></a></span></div>
<div class="layui-fluid">
    <div class="layui-card p30">		
		<div class="border-b pb15 f22"><?= $username ?> 角色管理</div>
		<form class="layui-form" action="/adminuser/user/edit-user-role" method="post">
		<input type="hidden" name="userid" value="<?= $userid ?>"/>
		<div class="layui-card-body pt30 pb15">		
			<div class="layui-container">
					<?php foreach($roles as $role){ ?>
						<input type="radio" name="roleid" id="<?= $role['id'] ?>" title="<?= $role['name'] ?>" value="<?= $role['id'] ?>" <?php echo $roleid==$role['id'] ? 'checked=true' : '';?>></br>
					<?php } ?>
			</div>
		</div>		
		<div class="pt30 border-t text-c"> 
			<button type="submit" class="layui-btn layui-btn-normal">提交</button>
			<a class="layui-btn layui-btn-primary" href="/adminuser/user/index">取消</a>					
		</div>		
		</form>		
    </div>
</div>
